package com.deyuanyun.pic.settings.service.greatwall;

import com.deyuanyun.pic.settings.domain.greatwall.ProductLogTempExpand;
import com.deyuanyun.pic.settings.domain.greatwall.ProductLogTempWithBLOBs;
import com.github.pagehelper.Page;

import java.util.List;

/**
 *  产品日志暂存service
 *  @author axiao(xj08.dream@gmail.com)
 *  @date 2016-12-20
 *  @version 1.0
 *  Histroy: [修改人][时间][描述]
 */
public interface ProductLogTempService {

    int insertSelective(ProductLogTempWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(ProductLogTempWithBLOBs record);

    /**
     * 分页查询未处理的暂存日志
     * @param pageNum
     * @param pageSize
     * @return 
     * @author axiao(xj08.dream@gmail.com)
     * @date 2016-12-23
     */
    public Page<ProductLogTempExpand> queryUntreatedLogs(int pageNum, int pageSize);

    /**
     * 根据id批量更新数据为已处理状态
     * @param ids
     * @return
     * @author axiao(xj08.dream@gmail.com)
     * @date 2016-12-23
     */
    public int updateHandleByIds(List<String> ids);
}
